package com.ytkj.digitalConstruction.enums;

/**
 *  统一错误记录
 * @author klaus
 *
 */
public enum ResultEnum implements IResultEnumRole{
	
	/**
	 * 未知错误
	 */
	UNKONW_ERROR(-1, "未知错误"), 
	
	/**
	 * 未登录或登录超时
	 */
	LOGIN_OUT_TIME(-2, "未登录或登录超时，请重新登录"),
	
	/**
	 * 成功
	 */
	SUCCESS(0, "成功");

	private Integer code;

	private String msg;

	ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public Integer getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}
}
